package mx.webcontrol;

import mx.forms.WebForm;
import mx.groovy.GUtils;
import mx.setup.MxFactory;
import mx.setup.Setup;
import javafx.application.Application;
import javafx.stage.Stage;

public class BuilderForm extends Application {
    @Override  
    public void start(Stage primaryStage) throws Exception { 
    	WebForm controlform = MxFactory.getBean("forms.controlform");
    	WebForm viewform = MxFactory.getBean("forms.viewform");
    	Control.init(viewform.getDocument());
    	
    	viewform.show();
        primaryStage.setScene(controlform.getScene());
        primaryStage.show();
    }
    
    public static void main(String[] args) throws Exception {  
    	Setup.initMain();
    	GUtils.mop();

        launch(args);  
    }  
}
